import { config } from 'dotenv';

config({ path: `.env.${process.env.NODE_ENV || 'development'}.local` });

export const CREDENTIALS = process.env.CREDENTIALS === 'true';
export const {
  NODE_ENV,
  PORT,
  HOST,
  SECRET_KEY,
  LOG_FORMAT,
  LOG_DIR,
  ORIGIN,
  DOUBLE_TOKEN,
  ACCESS_TOKEN_EXPIRATION,
  REFRESH_TOKEN_EXPIRATION,
  REDIS_HOST,
  REDIS_PORT,
  REDIS_TOKEN_DB,
  REDIS_ONLINE_DB,
  REDIS_PASSWORD,
  DEFAULT_PASSWORD,
  API_PREFIX,
} = process.env;
